package ExerciseGroup;/*
* 输出1~100之内所有奇数的和
* */

public class PrintOneHundredOddNumber {
    public static void main(String[] args) {

        int sum = 0;
        for (int oddNumber = 0; oddNumber <= 100; oddNumber++){
            if (oddNumber % 2 != 0){
                sum += oddNumber;
            }
        }
        System.out.println("和是：" + sum);
    }

}
